package services.business;

import base.IBaseServicesWithoutBLOBs;
import wt.entity.business.InspectorAssess;
import wt.entity.business.InspectorAssessExample;

import java.util.Date;
import java.util.List;

public interface InspectorAssessServices extends IBaseServicesWithoutBLOBs<InspectorAssess, InspectorAssessExample> {


    void insertSelective(List<InspectorAssess> inspectorAssessList, String businessId) throws Exception;

    void lazyLoadBusinessInfo(List<InspectorAssess> inspectorAssessList) throws Exception;


    /**
     * 管理员/专家  查询专家历史评价的业务
     *
     * @param checkStartTime    核查开始时间
     * @param checkEndTime      核查结束时间
     * @param companyName
     * @param productName
     * @param fromInspectorName 专家   查询时该项为null
     * @param expertId   管理员 查询时该项为null
     * @param toInspectorName
     * @return
     * @throws Exception
     */
    List<InspectorAssess> selectInspectorAssessHistory (
            Date checkStartTime,
            Date checkEndTime,
            String companyName,
            String productName,
            String fromInspectorName,
            String expertId,
            String toInspectorName
    ) throws Exception;


}